package aug14;

public class BindingTest2 {
	public static void main(String[] args){
		ParentBindingTest2 p = new ChildBindingTest2();
		ChildBindingTest2 c = new ChildBindingTest2();
		System.out.println("p.x = "+p.x);
		p.method();
		System.out.println("c.x = "+c.x);
		c.method();
	}
}

class ParentBindingTest2{
	int x = 100;
	void method(){
		System.out.println("Parent Method");
	}
}
class ChildBindingTest2 extends ParentBindingTest2{
//	int x = 101;
//	void method(){
//		System.out.println("Child Method");
//	}
}
